Skip to content

Conversation

@ne0rrmatrix
Copy link
Member

@ne0rrmatrix ne0rrmatrix commented Oct 5, 2024

  • Bug fix

Description of Change

Track window count and manage snackbar notifications

Added a static NumberOfWindows property to the Options class to track the number of windows. Updated SetShouldEnableSnackbarOnWindows to increment/decrement NumberOfWindows on window creation/closure. Conditional registration/unregistration of AppNotificationManager for snackbar notifications based on NumberOfWindows count.

Linked Issues

PR Checklist

  • Has a linked Issue, and the Issue has been approved(bug) or Championed (feature/proposal)
  • Has tests (if omitted, state reason in description)
  • Has samples (if omitted, state reason in description)
  • Rebased on top of main at time of PR
  • Changes adhere to coding standard
  • Documentation created or updated: https://github.com/MicrosoftDocs/CommunityToolkit/pulls

Additional information

This PR uses a simple counter to track the number of windows that exist and only when one is remaining will it unregister Snackview

Added a static `NumberOfWindows` property to the `Options` class to track the number of windows. Updated `SetShouldEnableSnackbarOnWindows` to increment/decrement `NumberOfWindows` on window creation/closure. Conditional registration/unregistration of `AppNotificationManager` for snackbar notifications based on `NumberOfWindows` count.
@ne0rrmatrix ne0rrmatrix self-assigned this Oct 5, 2024
@ne0rrmatrix ne0rrmatrix added the 📽️ MediaElement Issue/PR that has to do with MediaElement label Oct 5, 2024
Copy link

@McSaverInvestments McSaverInvestments left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This changed fixed #2279
Hoping it will be released soon

@McSaverInvestments
Copy link

Can some please resolve this merge conflict?
We have waiting on this for quite sometime!
@brminnick @ne0rrmatrix @pictos @softlion

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 1 changed files in this pull request and generated no suggestions.

@McSaverInvestments
Copy link

I am new to this process, and don't understand who needs to do what to get this done, but I would appreciate any help to get the mission accomplished.

@brminnick @ne0rrmatrix @pictos @softlion

@pictos
Copy link
Member

pictos commented Feb 12, 2025

@ne0rrmatrix what's holding this PR to be merged?

@ne0rrmatrix
Copy link
Member Author

Nothing that I can think of.

@ne0rrmatrix ne0rrmatrix merged commit 473c783 into CommunityToolkit:main Feb 12, 2025
10 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Feb 14, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

📽️ MediaElement Issue/PR that has to do with MediaElement

Projects

None yet

4 participants